package cn.tannn.surenessdemo.controller;

import cn.jdevelops.annotation.mapping.PathRestController;
import cn.jdevelops.result.result.ResultVO;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author tnnn
 * @version V1.0
 * @date 2022-07-17 00:55
 */
@Api(tags = "菜单角色的接口", value = "权限测试")
@PathRestController("menu")
@ApiSupport(order = 8)
public class TestRoleMenuController {


    @ApiOperation(value = "菜单一", notes = "权限测试")
    @GetMapping("menu1")
    @ApiOperationSupport(order = 1)
    public ResultVO<String> menu1(){
        return ResultVO.success("菜单一");
    }

    @ApiOperation(value = "菜单二", notes = "权限测试")
    @GetMapping("menu2")
    @ApiOperationSupport(order = 2)
    public ResultVO<String> menu2(){
        return ResultVO.success("菜单二");
    }

    @ApiOperation(value = "菜单三", notes = "权限测试")
    @GetMapping("menu3")
    @ApiOperationSupport(order = 3)
    public ResultVO<String> menu3(){
        return ResultVO.success("菜单三");
    }


    @ApiOperation(value = "菜单四", notes = "权限测试")
    @PostMapping("menu4")
    @ApiOperationSupport(order = 4)
    public ResultVO<String> menu4(){
        return ResultVO.success("菜单四");
    }

}
